package cn.net.isir.service2;

import com.github.pagehelper.PageInfo;
import cn.net.isir.dao.FinanceStatisticsDao;
import cn.net.isir.entity.dto.FinanceStatisticsDto;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author liuxubo
 * @filename FinanceStatisticsService.java
 * @package cn.net.isir.service2
 * @email lxb@isir.net.cn
 * @date 2018/12/04
 * @comment
 * @since 1.8
 */
@Service
public class FinanceStatisticsService {
    @Resource
    private FinanceStatisticsDao financeStatisticsDao;

    /**
     * 根据订单查询
     *
     * @param dto 查询参数
     * @return 查询结果
     */
    public PageInfo statisticsByOrder(FinanceStatisticsDto dto) {
        return financeStatisticsDao.statisticsByOrder(dto);
    }

    /**
     * 根据品类查询
     *
     * @param dto 查询参数
     * @return 查询结果
     */
    public PageInfo statisticsByCategory(FinanceStatisticsDto dto) {
        return financeStatisticsDao.statisticsByCategory(dto);
    }

    /**
     * 根据菜品查询
     *
     * @param dto 查询参数
     * @return 查询结果
     */
    public PageInfo statisticsByGoods(FinanceStatisticsDto dto) {
        return financeStatisticsDao.statisticsByGoods(dto);
    }

}
